import moment from 'moment'

export const dateFormat = (row: any, column: any) => {
  const date = row[column.property];
  if (date == undefined) { return '' } return moment(date).format("YYYY-MM-DD HH:mm:ss")
}